package com.ruoyi.purchase.mapper;

import com.ruoyi.purchase.pojo.PurchaseApply;

import java.util.List;

/**
 * 采购申请Mapper接口
 *
 * @author ruoyi
 * @date 2024-10-25
 */
public interface PurchaseApplyMapper
{
    /**
     * 查询采购申请
     *
     * @param id 采购申请主键
     * @return 采购申请
     */
    public PurchaseApply selectPurchaseApplyById(Integer id);

    /**
     * 查询采购申请列表
     *
     * @param purchaseApply 采购申请
     * @return 采购申请集合
     */
    public List<PurchaseApply> selectPurchaseApplyList(PurchaseApply purchaseApply);

    /**
     * 获取所有集合
     * @param purchaseApply
     * @return
     */
    public List<PurchaseApply> selectApplyAll(PurchaseApply purchaseApply);
    /**
     * 新增采购申请
     *
     * @param purchaseApply 采购申请
     * @return 结果
     */
    public void insertPurchaseApply(PurchaseApply purchaseApply);

    /**
     * 修改采购申请
     *
     * @param purchaseApply 采购申请
     * @return 结果
     */
    public int updatePurchaseApply(PurchaseApply purchaseApply);

    /**
     * 删除采购申请
     *
     * @param id 采购申请主键
     * @return 结果
     */
    public int deletePurchaseApplyById(Integer id);

    /**
     * 批量删除采购申请
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePurchaseApplyByIds(Integer[] ids);


    /**
     * 查询最后一个id值
     * @return
     */
    int selectLastId();

}
